package com.heima.user.controller;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.UserRelationDto;
import com.heima.user.service.ApUserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 关注不关注
 * @author lzq
 * @data 2023/5/10 17:46
 */
@RestController
@RequestMapping("/api/v1/user")
public class ApUserFollowController {

    @Autowired
    private ApUserFollowService apUserFollowService;

    /**
     * 关注不关注
     * @param dto
     * @return
     */
    @PostMapping("/user_follow")
    public ResponseResult userFollow(@RequestBody UserRelationDto dto){
     return  apUserFollowService.userFollow(dto);
    }
}
